<%@ include file= "../jsp-header.jsp" %>
<span class="localization" >
	<a href='<c:url value = "?lang=en" />' >en</a>
	|
	<a href='<c:url value = "?lang=ru" />' >ru</a>
	|
	<a href='<c:url value = "?lang=ua" />' >ua</a>
	
</span>
<h2>Current Locale : ${pageContext.response.locale}</h2>
<h1>header</h1>
<%-- <jsp:include page="../../tags/popup/register.tag" />--%>

<%-- <c:set var = "customer" scope = "session" value='<security:authentication property="principal" />' />--%>

<c:choose>
	<c:when test="${customer != null}">
		<span>Current customer: ${customer.login}</span>
	</c:when>
	<c:otherwise>
		<form action = "${contextPath}/login/j_spring_security_check" method = "post">
			<table>
				<tr>
					<td>
						<spring:message code="label.username" />:
					</td>
					<td>
						<input id="j_username" name="j_username" type="text" />
					</td>
				</tr>
				<% for(int i = 0; i < 5; i++)  {%>
					<tr>
					</tr>
				<% }%>
				<tr>
					<td>
						<spring:message code="label.password" />:
					</td>
					<td>
						<input id="j_password" name="j_password" type="password" />
					</td>
				</tr>
				<% for(int i = 0; i < 5; i++)  {%>
					<tr>
					</tr>
				<% }%>
				<tr>
					<td>
						<input type="submit" value = "<spring:message code="label.login" />" />
					</td>
				</tr>
			</table>
		</form>
	</c:otherwise>
</c:choose>